package values.module
{
import flash.utils.Dictionary;

public class ModuleValueList
{
	private static var _preloads:Array = [];

	public function get preloads():Array
	{
		return _preloads;
	}
	
	[Data(type="field", mapping="@preload", method="stringToArray")]
	public function set preloads(value:Array):void
	{
		_preloads = value;
	}
	
	public static function get preloadList():Array
	{
		return _preloads;
	}
	
	private static var _appIniteds:Array = [];
	
	public function get appIniteds():Array
	{
		return _appIniteds;
	}
	
	[Data(type="field", mapping="@appInited", method="stringToArray")]
	public function set appIniteds(value:Array):void
	{
		_appIniteds = value;
	}
	
	public static function get appInitedList():Array
	{
		return _appIniteds;
	}
	
	private static var list:Dictionary = new Dictionary(true); /* ModuleValue */
	
	public function get items():Dictionary
	{
		return list;
	}
	
	[Data(type="mapping", 
			   mapping="module", 
			   ref="values.module.ModuleValue",
			   way="one_to_more",
			   object="flash.utils.Dictionary",
	           key="@key")]
	public function set items(value:Dictionary):void
	{
		list = value;
	}
	
	public static function get moduleList():Dictionary
	{
		return list;
	}
	
	public static function getByKey(key:String):ModuleValue
	{
		return list[key];
	}
}
}